package com.htl.线程.sleep_wait;

public class Sleep_02 {
    public static void main(String[] args) {
        new Thread(()->{
            try {
                //让子线程休眠
                Thread.sleep(4000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            for (int i = 0; i < 50; i++) {
                System.out.println("Thread----------");
            }
        }).start();

        for (int i = 0; i < 50; i++) {
            System.out.println("============main");
        }
    }
}
